package com.example.trb.util;

import java.util.Collection;

public class UrlUtil {
    public static String urlsToString(String[] urls) {
        StringBuilder mb = new StringBuilder(urls.length);
        for (int i = 0; i < urls.length; i++) {
            mb.append(urls[i]).append(";");
        }
        return mb.toString();
    }

    public static String urlsToString(Collection<? extends String> urls) {
        String[] arr = (String[]) urls.toArray();
        return urlsToString(arr);
    }
}
